cmake_minimum_required(VERSION 2.8)
#########################################################################

SET(BUILD_PROJECT_NAME "demo")

include_directories(
	${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
	${CMAKE_SOURCE_DIR}/src/
)
link_directories(
	${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
)
add_executable(detect_image detect_image.cpp)
target_link_libraries(detect_image facedetect)

SET(OPENSOURCE 
	${CMAKE_SOURCE_DIR}/comm/opensource/mongoose/mongoose.c
	${CMAKE_SOURCE_DIR}/comm/opensource/json/jsoncpp.cpp
)

add_executable(httpServer httpServer.cpp ${OPENSOURCE}) 
	
target_link_libraries(httpServer facedetect)